//shoot.js
function Shoot(posicao_x,posicao_y)
{
	this.img = new Image();
	this.img.src = "Imagens/tiro.png";
	this.loaded = false;
	this.visible = true;
	
	this.onload = function()
	{
		loaded = true;
	}
	
	this.size_x = 10;
	this.size_y = 50;
	this.posicao_x = posicao_x - this.size_x/2;
	this.posicao_y = posicao_y - this.size_y;
	this.velocity_x = 0; 
	this.velocity_y = -50;
		
	this.update = function()
	{
		this.posicao_x += this.velocity_x;
		this.posicao_y += this.velocity_y;
		
		console.log("IHGLHBLKJ ");
		
		
	}//FIM DO update da CLASSE SHOOT

	this.draw = function()
	{
		if(this.visible == true)
		screen.drawImage(this.img, this.posicao_x, this.posicao_y);
  		  		
	}// FIM DO DRAW
	

}//FIM DA CLASSE DO TIRO